package com.my.design.stragey;

public class Test {

    public static void main(String[] args) {
        PrimaryStragey primaryStragey  = new PrimaryStragey();
        IntermediateMemberStrategy intermediateMemberStrategy = new IntermediateMemberStrategy();
        AdvanceMemberStrategy advanceMemberStrategy = new AdvanceMemberStrategy();


        Context context = new Context(primaryStragey);

        Context context1 = new Context(intermediateMemberStrategy);


        Context context2 = new Context(advanceMemberStrategy);

        System.out.println("普通人的价钱：" + context.calculate());

        System.out.println("初级会员的价钱：" + context1.calculate());


        System.out.println("高级会员的价钱：" + context2.calculate());
    }
}
